//
//  MyUtilities.h
//  ZingBrowser
//
//  Created by -Xh- on 1/15/13.
//  Copyright (c) 2013 -Xh-. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>


#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 460



@interface MyUtilities : NSObject

+(void)logArray:(NSArray*)_array withTitle:(NSString*)_title;
+(void)logRect:(CGRect)rect withTag:(NSString*)tag;
+(void)logPoint:(CGPoint)point withTag:(NSString*)tag;
+(void)logSize:(CGSize)size withTag:(NSString*)tag;
+(void)logScrollView:(UIScrollView*)_scrollView withTag:(NSString*)_tag;
+(NSString*)copyDatabaseToDocumentFolder:(NSString*)_dbName;
+(NSString*) getGeneratedIDWithPrefix:(NSString*)_prefix AndIndex:(int)_index WithMaxNumberOfZero:(int)_maxNumOfZero;
+(UIEdgeInsets) getEdgeInsetFromRect:(CGRect)rect;
+(BOOL)rect:(CGRect)_rect1 isEqualToRect:(CGRect)_rect2;
+(UIImage *)takeScreenShotOfView:(UIView *)_view;
+(UIImage *)takeScreenShotOfView:(UIView *)_view WithOffset:(CGPoint)_offset;
+(UIImage*)takeScreenShotOfTheWholeScreen;
+(UIImage *)takeScreenShotOfTheWholeScreenWithOffset:(CGPoint)_offset;
+(NSString*)getCorrectDateFormatFromDate:(NSDate*)_date;
+(UIImage*)getImageWithURL:(NSString*)_url FromDict:(NSMutableDictionary*) imageDict;
+(NSString*)getLocalizeStringFromTag:(NSString*)_tagName;
+(int)randomWithMin:(int)_min AndMax:(int)_max;
+(NSString*)getLocalizeErrorMessageFromError:(NSError*)error;


+(void)logAllScrollViewFromParentView:(UIView*)parentView;

+ (void)listSubviewsOfView:(UIView *)view ;
@end
